home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / CompressionStack.cpt / Compression Stack / cards.xml < prev    next >
Text File  |  1991-09-27  |  27KB  |  744 lines

  1. card_4429.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>4429</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2617</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3147.css" />
  12.     <part>
  13.         <id>1</id>
  14.         <type>field</type>
  15.         <visible> <true /> </visible>
  16.         <dontWrap> <false /> </dontWrap>
  17.         <dontSearch> <false /> </dontSearch>
  18.         <sharedText> <false /> </sharedText>
  19.         <fixedLineHeight> <false /> </fixedLineHeight>
  20.         <autoTab> <false /> </autoTab>
  21.         <lockText> <false /> </lockText>
  22.         <rect>
  23.             <left>4</left>
  24.             <top>18</top>
  25.             <right>380</right>
  26.             <bottom>243</bottom>
  27.         </rect>
  28.         <style>scrolling</style>
  29.         <autoSelect> <false /> </autoSelect>
  30.         <showLines> <false /> </showLines>
  31.         <wideMargins> <false /> </wideMargins>
  32.         <multipleLines> <false /> </multipleLines>
  33.         <reservedFamily> 0 </reservedFamily>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>0</icon>
  36.         <textAlign>left</textAlign>
  37.         <font>Geneva</font>
  38.         <textSize>12</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <textHeight>16</textHeight>
  41.         <name></name>
  42.         <script></script>
  43.     </part>
  44.     <part>
  45.         <id>2</id>
  46.         <type>field</type>
  47.         <visible> <true /> </visible>
  48.         <dontWrap> <false /> </dontWrap>
  49.         <dontSearch> <false /> </dontSearch>
  50.         <sharedText> <false /> </sharedText>
  51.         <fixedLineHeight> <false /> </fixedLineHeight>
  52.         <autoTab> <false /> </autoTab>
  53.         <lockText> <true /> </lockText>
  54.         <rect>
  55.             <left>4</left>
  56.             <top>1</top>
  57.             <right>380</right>
  58.             <bottom>19</bottom>
  59.         </rect>
  60.         <style>transparent</style>
  61.         <autoSelect> <false /> </autoSelect>
  62.         <showLines> <false /> </showLines>
  63.         <wideMargins> <false /> </wideMargins>
  64.         <multipleLines> <false /> </multipleLines>
  65.         <reservedFamily> 0 </reservedFamily>
  66.         <titleWidth>0</titleWidth>
  67.         <icon>0</icon>
  68.         <textAlign>center</textAlign>
  69.         <font>Geneva</font>
  70.         <textSize>12</textSize>
  71.         <textStyle>bold</textStyle>
  72.         <textHeight>16</textHeight>
  73.         <name></name>
  74.         <script></script>
  75.     </part>
  76.     <part>
  77.         <id>3</id>
  78.         <type>button</type>
  79.         <visible> <true /> </visible>
  80.         <reserved5> 0 </reserved5>
  81.         <reserved4> 0 </reserved4>
  82.         <reserved3> 0 </reserved3>
  83.         <reserved2> 0 </reserved2>
  84.         <reserved1> 0 </reserved1>
  85.         <enabled> <true /> </enabled>
  86.         <rect>
  87.             <left>351</left>
  88.             <top>245</top>
  89.             <right>384</right>
  90.             <bottom>272</bottom>
  91.         </rect>
  92.         <style>transparent</style>
  93.         <showName> <false /> </showName>
  94.         <highlight> <false /> </highlight>
  95.         <autoHighlight> <true /> </autoHighlight>
  96.         <sharedHighlight> <true /> </sharedHighlight>
  97.         <family>0</family>
  98.         <titleWidth>0</titleWidth>
  99.         <icon>2162</icon>
  100.         <textAlign>center</textAlign>
  101.         <font>Chicago</font>
  102.         <textSize>12</textSize>
  103.         <textStyle>plain</textStyle>
  104.         <name>New Button</name>
  105.         <script>on mouseUpgo card 1end mouseUp</script>
  106.     </part>
  107.     <content>
  108.         <layer>card</layer>
  109.         <id>2</id>
  110.         <text>HyperCard Compression Documentation</text>
  111.     </content>
  112.     <content>
  113.         <layer>card</layer>
  114.         <id>1</id>
  115.         <text><span class="style1">his stack contains XFCNs that compress data using the Lempel-Ziv-Welch algorithm. One pair of XFCNs compresses and uncompresses files (including the resource fork). Another pair deals with HyperTalk strings. You might use these XFCNs if you wanted to manipulate compressed data under the control of a script.This stack contains five XFCNs. All of them follow the convention of returning a string whose first word is "error" if something goes wrong. This software works with HyperCard versions 1.x and 2.x.</span><span class="style12">CompressFile(infile, outfile)</span><span class="style1">This XFCN reads compresses the data and resource forks of </span><span class="style12">infile</span><span class="style1"> and writes the results to </span><span class="style12">outfile</span><span class="style1">. The input and output files may not be the same. </span><span class="style12">Outfile</span><span class="style1"> will have type </span><span class="style12">hcLZ</span><span class="style1">. The creator, file type, and file name of the original file are recorded in the compressed file.</span><span class="style12">UncompressFile(infile, [outfile])</span><span class="style1">This XFCN uncompresses the file specified by the first argument. If no output file is given, the file name recorded in the compressed file is used. The creator and file type of the original file are restored. The input and output files may not be the same.</span><span class="style12">FSDelete(file)</span><span class="style1">This XFCN deletes the indicated file.</span><span class="style12">CompressString(text)</span><span class="style13"></span><span class="style1">This XFCN takes any string as an argument, compresses it, and returns the compressed text. The return value always starts with the two characters #W.</span><span class="style12">UncompressString(compressedText)</span><span class="style1">This XFCN takes a compressed string as produced by </span><span class="style12">CompressString()</span><span class="style1">. It returns the original string.</span></text>
  116.     </content>
  117.     <name></name>
  118.     <script></script>
  119. </card>
  120.  
  121.  
  122. card_2998.xml
  123. <?xml version="1.0" encoding="utf-8" ?>
  124. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  125. <card>
  126.     <id>2998</id>
  127.     <filler1>0</filler1>
  128.     <cantDelete> <false /> </cantDelete>
  129.     <showPict> <true /> </showPict>
  130.     <dontSearch> <false /> </dontSearch>
  131.     <owner>2617</owner>
  132.     <link rel="stylesheet" type="text/css" href="stylesheet_3147.css" />
  133.     <part>
  134.         <id>1</id>
  135.         <type>field</type>
  136.         <visible> <true /> </visible>
  137.         <dontWrap> <false /> </dontWrap>
  138.         <dontSearch> <false /> </dontSearch>
  139.         <sharedText> <false /> </sharedText>
  140.         <fixedLineHeight> <false /> </fixedLineHeight>
  141.         <autoTab> <false /> </autoTab>
  142.         <lockText> <false /> </lockText>
  143.         <rect>
  144.             <left>4</left>
  145.             <top>19</top>
  146.             <right>380</right>
  147.             <bottom>100</bottom>
  148.         </rect>
  149.         <style>scrolling</style>
  150.         <autoSelect> <false /> </autoSelect>
  151.         <showLines> <false /> </showLines>
  152.         <wideMargins> <false /> </wideMargins>
  153.         <multipleLines> <false /> </multipleLines>
  154.         <reservedFamily> 0 </reservedFamily>
  155.         <titleWidth>0</titleWidth>
  156.         <icon>0</icon>
  157.         <textAlign>left</textAlign>
  158.         <font>Geneva</font>
  159.         <textSize>12</textSize>
  160.         <textStyle>plain</textStyle>
  161.         <textHeight>16</textHeight>
  162.         <name>in</name>
  163.         <script></script>
  164.     </part>
  165.     <part>
  166.         <id>2</id>
  167.         <type>field</type>
  168.         <visible> <true /> </visible>
  169.         <dontWrap> <false /> </dontWrap>
  170.         <dontSearch> <false /> </dontSearch>
  171.         <sharedText> <false /> </sharedText>
  172.         <fixedLineHeight> <false /> </fixedLineHeight>
  173.         <autoTab> <false /> </autoTab>
  174.         <lockText> <false /> </lockText>
  175.         <rect>
  176.             <left>4</left>
  177.             <top>149</top>
  178.             <right>380</right>
  179.             <bottom>230</bottom>
  180.         </rect>
  181.         <style>scrolling</style>
  182.         <autoSelect> <false /> </autoSelect>
  183.         <showLines> <false /> </showLines>
  184.         <wideMargins> <false /> </wideMargins>
  185.         <multipleLines> <false /> </multipleLines>
  186.         <reservedFamily> 0 </reservedFamily>
  187.         <titleWidth>0</titleWidth>
  188.         <icon>0</icon>
  189.         <textAlign>left</textAlign>
  190.         <font>Geneva</font>
  191.         <textSize>12</textSize>
  192.         <textStyle>plain</textStyle>
  193.         <textHeight>16</textHeight>
  194.         <name>out</name>
  195.         <script></script>
  196.     </part>
  197.     <part>
  198.         <id>4</id>
  199.         <type>field</type>
  200.         <visible> <true /> </visible>
  201.         <dontWrap> <false /> </dontWrap>
  202.         <dontSearch> <false /> </dontSearch>
  203.         <sharedText> <false /> </sharedText>
  204.         <fixedLineHeight> <false /> </fixedLineHeight>
  205.         <autoTab> <false /> </autoTab>
  206.         <lockText> <true /> </lockText>
  207.         <rect>
  208.             <left>117</left>
  209.             <top>6</top>
  210.             <right>261</right>
  211.             <bottom>19</bottom>
  212.         </rect>
  213.         <style>transparent</style>
  214.         <autoSelect> <false /> </autoSelect>
  215.         <showLines> <false /> </showLines>
  216.         <wideMargins> <false /> </wideMargins>
  217.         <multipleLines> <false /> </multipleLines>
  218.         <reservedFamily> 0 </reservedFamily>
  219.         <titleWidth>0</titleWidth>
  220.         <icon>0</icon>
  221.         <textAlign>left</textAlign>
  222.         <font>Geneva</font>
  223.         <textSize>10</textSize>
  224.         <textStyle>plain</textStyle>
  225.         <textHeight>13</textHeight>
  226.         <name>insize</name>
  227.         <script></script>
  228.     </part>
  229.     <part>
  230.         <id>5</id>
  231.         <type>field</type>
  232.         <visible> <true /> </visible>
  233.         <dontWrap> <false /> </dontWrap>
  234.         <dontSearch> <false /> </dontSearch>
  235.         <sharedText> <false /> </sharedText>
  236.         <fixedLineHeight> <false /> </fixedLineHeight>
  237.         <autoTab> <false /> </autoTab>
  238.         <lockText> <true /> </lockText>
  239.         <rect>
  240.             <left>119</left>
  241.             <top>136</top>
  242.             <right>283</right>
  243.             <bottom>149</bottom>
  244.         </rect>
  245.         <style>transparent</style>
  246.         <autoSelect> <false /> </autoSelect>
  247.         <showLines> <false /> </showLines>
  248.         <wideMargins> <false /> </wideMargins>
  249.         <multipleLines> <false /> </multipleLines>
  250.         <reservedFamily> 0 </reservedFamily>
  251.         <titleWidth>0</titleWidth>
  252.         <icon>0</icon>
  253.         <textAlign>left</textAlign>
  254.         <font>Geneva</font>
  255.         <textSize>10</textSize>
  256.         <textStyle>plain</textStyle>
  257.         <textHeight>13</textHeight>
  258.         <name>outsize</name>
  259.         <script></script>
  260.     </part>
  261.     <part>
  262.         <id>10</id>
  263.         <type>button</type>
  264.         <visible> <true /> </visible>
  265.         <reserved5> 0 </reserved5>
  266.         <reserved4> 0 </reserved4>
  267.         <reserved3> 0 </reserved3>
  268.         <reserved2> 0 </reserved2>
  269.         <reserved1> 0 </reserved1>
  270.         <enabled> <true /> </enabled>
  271.         <rect>
  272.             <left>129</left>
  273.             <top>103</top>
  274.             <right>166</right>
  275.             <bottom>135</bottom>
  276.         </rect>
  277.         <style>rectangle</style>
  278.         <showName> <false /> </showName>
  279.         <highlight> <false /> </highlight>
  280.         <autoHighlight> <true /> </autoHighlight>
  281.         <sharedHighlight> <true /> </sharedHighlight>
  282.         <family>0</family>
  283.         <titleWidth>0</titleWidth>
  284.         <icon>6724</icon>
  285.         <textAlign>center</textAlign>
  286.         <font>Chicago</font>
  287.         <textSize>12</textSize>
  288.         <textStyle>plain</textStyle>
  289.         <name>Compress</name>
  290.         <script>on mouseUpglobal statsset cursor to 4put "" into cd fld "out"put CompressString(cd fld "in") into cd fld "out"put (the number of chars of cd fld "in")&&"bytes" into cd fld "insize"put (the number of chars of cd fld "out")&&"bytes" into cd fld "outsize"end mouseUp</script>
  291.     </part>
  292.     <part>
  293.         <id>11</id>
  294.         <type>button</type>
  295.         <visible> <true /> </visible>
  296.         <reserved5> 0 </reserved5>
  297.         <reserved4> 0 </reserved4>
  298.         <reserved3> 0 </reserved3>
  299.         <reserved2> 0 </reserved2>
  300.         <reserved1> 0 </reserved1>
  301.         <enabled> <true /> </enabled>
  302.         <rect>
  303.             <left>208</left>
  304.             <top>103</top>
  305.             <right>246</right>
  306.             <bottom>137</bottom>
  307.         </rect>
  308.         <style>rectangle</style>
  309.         <showName> <false /> </showName>
  310.         <highlight> <false /> </highlight>
  311.         <autoHighlight> <true /> </autoHighlight>
  312.         <sharedHighlight> <true /> </sharedHighlight>
  313.         <family>0</family>
  314.         <titleWidth>0</titleWidth>
  315.         <icon>4895</icon>
  316.         <textAlign>center</textAlign>
  317.         <font>Chicago</font>
  318.         <textSize>12</textSize>
  319.         <textStyle>plain</textStyle>
  320.         <name>Uncompress</name>
  321.         <script>on mouseUpglobal statsset cursor to 4put "" into cd fld "in"put UncompressString(cd fld "out") into cd fld "in"put (the number of chars of cd fld "in")&&"bytes" into cd fld "insize"put (the number of chars of cd fld "out")&&"bytes" into cd fld "outsize"end mouseUp</script>
  322.     </part>
  323.     <part>
  324.         <id>13</id>
  325.         <type>button</type>
  326.         <visible> <true /> </visible>
  327.         <reserved5> 0 </reserved5>
  328.         <reserved4> 0 </reserved4>
  329.         <reserved3> 0 </reserved3>
  330.         <reserved2> 0 </reserved2>
  331.         <reserved1> 0 </reserved1>
  332.         <enabled> <true /> </enabled>
  333.         <rect>
  334.             <left>35</left>
  335.             <top>255</top>
  336.             <right>135</right>
  337.             <bottom>277</bottom>
  338.         </rect>
  339.         <style>roundrect</style>
  340.         <showName> <true /> </showName>
  341.         <highlight> <false /> </highlight>
  342.         <autoHighlight> <true /> </autoHighlight>
  343.         <sharedHighlight> <true /> </sharedHighlight>
  344.         <family>0</family>
  345.         <titleWidth>0</titleWidth>
  346.         <icon>0</icon>
  347.         <textAlign>center</textAlign>
  348.         <font>Chicago</font>
  349.         <textSize>12</textSize>
  350.         <textStyle>plain</textStyle>
  351.         <name>Compress</name>
  352.         <script>on mouseUpglobal statsanswer file "File to compress:" -- of type "xxxx"put it into infileif infile is "" then exit to hypercardput infile && "(compressed)" into outfileset cursor to 4put the ticks into t1put CompressFile(infile, outfile) into zzif zz <> "" thenanswer zzend ifput ((the ticks) - t1) / 60 into statsend mouseUp</script>
  353.     </part>
  354.     <part>
  355.         <id>14</id>
  356.         <type>button</type>
  357.         <visible> <true /> </visible>
  358.         <reserved5> 0 </reserved5>
  359.         <reserved4> 0 </reserved4>
  360.         <reserved3> 0 </reserved3>
  361.         <reserved2> 0 </reserved2>
  362.         <reserved1> 0 </reserved1>
  363.         <enabled> <true /> </enabled>
  364.         <rect>
  365.             <left>145</left>
  366.             <top>255</top>
  367.             <right>245</right>
  368.             <bottom>277</bottom>
  369.         </rect>
  370.         <style>roundrect</style>
  371.         <showName> <true /> </showName>
  372.         <highlight> <false /> </highlight>
  373.         <autoHighlight> <true /> </autoHighlight>
  374.         <sharedHighlight> <true /> </sharedHighlight>
  375.         <family>0</family>
  376.         <titleWidth>0</titleWidth>
  377.         <icon>0</icon>
  378.         <textAlign>center</textAlign>
  379.         <font>Chicago</font>
  380.         <textSize>12</textSize>
  381.         <textStyle>plain</textStyle>
  382.         <name>Uncompress</name>
  383.         <script>on mouseUpglobal statsanswer file "File to uncompress:" of type "hcLZ"put it into infileif infile is "" then exit to hypercardask file "Output file:"put it into outfileif outfile is "" then exit to hypercardset cursor to 4put the ticks into t1put UncompressFile(infile, outfile) into zzif zz <> "" thenanswer zzend ifput ((the ticks) - t1) / 60 into statsend mouseUp</script>
  384.     </part>
  385.     <part>
  386.         <id>15</id>
  387.         <type>button</type>
  388.         <visible> <true /> </visible>
  389.         <reserved5> 0 </reserved5>
  390.         <reserved4> 0 </reserved4>
  391.         <reserved3> 0 </reserved3>
  392.         <reserved2> 0 </reserved2>
  393.         <reserved1> 0 </reserved1>
  394.         <enabled> <true /> </enabled>
  395.         <rect>
  396.             <left>254</left>
  397.             <top>255</top>
  398.             <right>354</right>
  399.             <bottom>277</bottom>
  400.         </rect>
  401.         <style>roundrect</style>
  402.         <showName> <true /> </showName>
  403.         <highlight> <false /> </highlight>
  404.         <autoHighlight> <true /> </autoHighlight>
  405.         <sharedHighlight> <true /> </sharedHighlight>
  406.         <family>0</family>
  407.         <titleWidth>0</titleWidth>
  408.         <icon>0</icon>
  409.         <textAlign>center</textAlign>
  410.         <font>Chicago</font>
  411.         <textSize>12</textSize>
  412.         <textStyle>plain</textStyle>
  413.         <name>Delete</name>
  414.         <script>on mouseUpanswer file "File to delete:"put it into flif fl <> "" thenput FSDelete(fl) into zzif zz <> "" thenanswer zzend ifend ifend mouseUp</script>
  415.     </part>
  416.     <part>
  417.         <id>16</id>
  418.         <type>field</type>
  419.         <visible> <true /> </visible>
  420.         <dontWrap> <false /> </dontWrap>
  421.         <dontSearch> <false /> </dontSearch>
  422.         <sharedText> <false /> </sharedText>
  423.         <fixedLineHeight> <false /> </fixedLineHeight>
  424.         <autoTab> <false /> </autoTab>
  425.         <lockText> <true /> </lockText>
  426.         <rect>
  427.             <left>2</left>
  428.             <top>6</top>
  429.             <right>70</right>
  430.             <bottom>19</bottom>
  431.         </rect>
  432.         <style>transparent</style>
  433.         <autoSelect> <false /> </autoSelect>
  434.         <showLines> <false /> </showLines>
  435.         <wideMargins> <false /> </wideMargins>
  436.         <multipleLines> <false /> </multipleLines>
  437.         <reservedFamily> 0 </reservedFamily>
  438.         <titleWidth>0</titleWidth>
  439.         <icon>0</icon>
  440.         <textAlign>left</textAlign>
  441.         <font>Geneva</font>
  442.         <textSize>12</textSize>
  443.         <textStyle>plain</textStyle>
  444.         <textHeight>16</textHeight>
  445.         <name></name>
  446.         <script></script>
  447.     </part>
  448.     <part>
  449.         <id>17</id>
  450.         <type>field</type>
  451.         <visible> <true /> </visible>
  452.         <dontWrap> <false /> </dontWrap>
  453.         <dontSearch> <false /> </dontSearch>
  454.         <sharedText> <false /> </sharedText>
  455.         <fixedLineHeight> <false /> </fixedLineHeight>
  456.         <autoTab> <false /> </autoTab>
  457.         <lockText> <true /> </lockText>
  458.         <rect>
  459.             <left>2</left>
  460.             <top>136</top>
  461.             <right>108</right>
  462.             <bottom>149</bottom>
  463.         </rect>
  464.         <style>transparent</style>
  465.         <autoSelect> <false /> </autoSelect>
  466.         <showLines> <false /> </showLines>
  467.         <wideMargins> <false /> </wideMargins>
  468.         <multipleLines> <false /> </multipleLines>
  469.         <reservedFamily> 0 </reservedFamily>
  470.         <titleWidth>0</titleWidth>
  471.         <icon>0</icon>
  472.         <textAlign>left</textAlign>
  473.         <font>Geneva</font>
  474.         <textSize>12</textSize>
  475.         <textStyle>plain</textStyle>
  476.         <textHeight>16</textHeight>
  477.         <name></name>
  478.         <script></script>
  479.     </part>
  480.     <part>
  481.         <id>18</id>
  482.         <type>field</type>
  483.         <visible> <true /> </visible>
  484.         <dontWrap> <false /> </dontWrap>
  485.         <dontSearch> <false /> </dontSearch>
  486.         <sharedText> <false /> </sharedText>
  487.         <fixedLineHeight> <false /> </fixedLineHeight>
  488.         <autoTab> <false /> </autoTab>
  489.         <lockText> <true /> </lockText>
  490.         <rect>
  491.             <left>2</left>
  492.             <top>238</top>
  493.             <right>108</right>
  494.             <bottom>254</bottom>
  495.         </rect>
  496.         <style>transparent</style>
  497.         <autoSelect> <false /> </autoSelect>
  498.         <showLines> <false /> </showLines>
  499.         <wideMargins> <false /> </wideMargins>
  500.         <multipleLines> <false /> </multipleLines>
  501.         <reservedFamily> 0 </reservedFamily>
  502.         <titleWidth>0</titleWidth>
  503.         <icon>0</icon>
  504.         <textAlign>left</textAlign>
  505.         <font>Geneva</font>
  506.         <textSize>12</textSize>
  507.         <textStyle>plain</textStyle>
  508.         <textHeight>16</textHeight>
  509.         <name></name>
  510.         <script></script>
  511.     </part>
  512.     <content>
  513.         <layer>card</layer>
  514.         <id>4</id>
  515.         <text>1396 bytes</text>
  516.     </content>
  517.     <content>
  518.         <layer>card</layer>
  519.         <id>5</id>
  520.         <text>825 bytes</text>
  521.     </content>
  522.     <content>
  523.         <layer>card</layer>
  524.         <id>16</id>
  525.         <text><span class="style9">ext:</span></text>
  526.     </content>
  527.     <content>
  528.         <layer>card</layer>
  529.         <id>17</id>
  530.         <text><span class="style9">ompressed text:</span></text>
  531.     </content>
  532.     <content>
  533.         <layer>card</layer>
  534.         <id>18</id>
  535.         <text><span class="style9">ile operations:</span></text>
  536.     </content>
  537.     <content>
  538.         <layer>card</layer>
  539.         <id>2</id>
  540.         <text>#W@ÀáÀáHe‚Ä∞√Æ√´f√†9o‚ÅÑ ¬ßStÔ¨Å√Ñ√¨√©¬ø9st4h@M¬°√ât¬¨√•Y3√í√ß√µ√™i‚ÄπΔíbd√†√ât‚Äì√ëyH¬±√ß‚âà2A√™√¥D√π9)≈ì@D3√™I√µe√ø¬•‚Äì√≠‚àÜN√£+I¬´‚Ć‚åò√ú√ï√¥7r‚ÄúΔíl‚ÄûΔí7¬∑√ëI#Δí X‚à´4X√õ&F√∫T‚Ä∫√™√í√à¬∂√å‚âà9p√ï¬ßaE¬†1l√ç√™    :t‚Ä°‚âà7u‚Ä∞√•h√é√∂]√â‚àèy3 ¬±du√±¬©jÔ£ø√©√∑¬©H√ö¬ø    H‚Ä¢*‚Ķ9t‚⧂à´93¬´‚âà‚àÜ√©Q√£$I√í‚Ä∞X√Ø √ô‚ÅѬÆÀÜed6l√ɬ¢‚ↂÄπ&Àú‚Ä°o√ì.√àfÀú‚Ķ4&√ñ√âH'¬±¬¨=Q¬¥z√ï¬∫œÄ‚Ķ¬¢q√é‚Äπ√®"¬†¬°*√á Z√ë
  541. cæ
  542. Àú≈íÀô‚Äô]aDh√ú≈í√π0√´√ÅXg√º√Ö‚ÅÑhr ‚Ä°\¬™‚Ķ√ÆI‚âà‚Ä°q√ï%‚àö√ë√Ü50DEw¬±W~œÄ¬∞_,√≤U#√±√´G‚ↂÄò√≠‚ÄùmF[‚Äö√ëLD√àΔíS√ñ1"√Æ√øb‚à܂Ķ¬±√úAg‚åò$‚Äö√°<‚ÅÑ√ü\√؃±Xt¬ø$‚åòb(~√≤_√©)¬°q"√®TjÀòP√§¬µ‚åòF LÀÜ√™ √Ç8G
  543. uƒ±Δí√¢)√≠‚àëWp2√å√´h¬∞1Z\9‚Äì√ï√ëU√¢q‚Äú√Ög√¢a¬ª_e‚â§9P√´Mb√Ø‚àÜ)U¬µ√ã@ÀáVEr√™Q‚àÜyn,g√≥√ß√º^√∂au‚Äô√†√´√°|√ñ√≤b√¢[P√¥b+√ç√≥√∑√£t√ßÀô√©√•!9¬´hc¬ß¬∞W¬©b√™≈∏¬ß^>‚Ä°u(tRWI‚Ć5√¥√¢txy)AQ√ç\√¢¬´"√à√ú¬£1r√ç)¬Æ¬¢‚Ñ¢√§‚óä\q~√ô‚Äù√ü~NhDe%√§.√≠√ú√©&]¬ßYQÀômpqf‚ÅÑ#¬∫√è√á‚Äì‚Äî@Yn)/¬µ√∑√á    √á√≤d√∂    √∂√Ä‚â†≈∏√äFFLADRe0√ëB√§¬µ‚àÇx¬¥K√∂√í‚âà√òF6‚àÜL‚Ä¢¬∂√≤¬∑√ú6‚Ä∫5EjA¬∞¬ø√™C‚ÄòDa¬®W¬¢dj√°√πA√¢R%‚â•≈í‚ÄúQ¬¢√Ü7d4√®‚ÄòYG2‚Äú‚Ä¢≈íLG¬™M√Ä‚åò‚Ñ¢U‚Äô√Ö)ÀáÀá√Ǭ±_HrD)gL√ÄÀò'√´TÀá√§Δí√™√â √•p‚â଩¬©‚àÇl‚Äû√ĂǨ¬∞Àá5T4DG√ï.√á√≠≈í@√≥$Àú[sÀò¬∫UY√ôu,6W¬± ‚àû√è√∑t¬´ I<T5n¬ØNZip√ú√º¬∑</text>
  544.     </content>
  545.     <content>
  546.         <layer>card</layer>
  547.         <id>1</id>
  548.         <text>Here is some text to compress:This stack contains XFCNs that compress data using the Lempel-Ziv-Welch algorithm. One pair of XFCNs compresses and uncompresses files (including the resource fork). Another pair deals with HyperTalk strings.This stack contains five XFCNs. All of them follow the convention of returning a string whose first word is "error" if something goes wrong. This software works with HyperCard versions 1.x and 2.x.CompressFile(infile, outfile)This XFCN reads compresses the data and resource forks of infile and writes the results to outfile. The input and output files may not be the same. Outfile will have type hcLZ. The creator, file type, and file name of the original file are recorded in the compressed file.UncompressFile(infile, [outfile])This XFCN uncompresses the file specified by the first argument. If no output file is given, the file name recorded in the compressed file is used. The creator and file type of the original file are restored. The input and output files may not be the same.FSDelete(file)This XFCN deletes the indicated file.CompressString(text)This XFCN takes any string as an argument, compresses it, and returns the compressed text. The return value always starts with the two characters #W.UncompressString(compressedText)This XFCN takes a compressed string as produced by CompressString(). It returns the original string.</text>
  549.     </content>
  550.     <name></name>
  551.     <script>on TestString-- loop forever, testing CompressString() and UncompressString()set cursor to busyrepeatput cd fld "in" into xrepeat with i = 1 to 20put CompressString(x) into xCheck xend repeatrepeat with i = 1 to 20put UncompressString(x) into xCheck xend repeatif x <> cd fld "in" thenanswer "strings do not match"end ifend repeatend TestStringon TestFile-- loop forever, testing CompressFile() and UncompressFile()answer file "Test file to compress?"put it into flif fl is "" then exit to hypercardset cursor to busyCheck CompressFile(fl, "junk0 (compressed)")Check UncompressFile("junk0 (compressed)", "junk0")Check FSDelete("junk0 (compressed)")repeatCheck CompressFile("junk0", "junk0 (compressed)")Check FSDelete("junk0")Check UncompressFile("junk0 (compressed)")Check FSDelete("junk0 (compressed)")end repeatend TestFileon Check sif word 1 of s is "error" thenanswer sexit to hypercardend ifset cursor to busyend Check</script>
  552. </card>
  553.  
  554.  
  555. card_3862.xml
  556. <?xml version="1.0" encoding="utf-8" ?>
  557. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  558. <card>
  559.     <id>3862</id>
  560.     <filler1>0</filler1>
  561.     <cantDelete> <false /> </cantDelete>
  562.     <showPict> <true /> </showPict>
  563.     <dontSearch> <false /> </dontSearch>
  564.     <owner>2617</owner>
  565.     <link rel="stylesheet" type="text/css" href="stylesheet_3147.css" />
  566.     <part>
  567.         <id>1</id>
  568.         <type>field</type>
  569.         <visible> <true /> </visible>
  570.         <dontWrap> <false /> </dontWrap>
  571.         <dontSearch> <false /> </dontSearch>
  572.         <sharedText> <false /> </sharedText>
  573.         <fixedLineHeight> <false /> </fixedLineHeight>
  574.         <autoTab> <false /> </autoTab>
  575.         <lockText> <true /> </lockText>
  576.         <rect>
  577.             <left>22</left>
  578.             <top>177</top>
  579.             <right>363</right>
  580.             <bottom>265</bottom>
  581.         </rect>
  582.         <style>rectangle</style>
  583.         <autoSelect> <false /> </autoSelect>
  584.         <showLines> <false /> </showLines>
  585.         <wideMargins> <false /> </wideMargins>
  586.         <multipleLines> <false /> </multipleLines>
  587.         <reservedFamily> 0 </reservedFamily>
  588.         <titleWidth>0</titleWidth>
  589.         <icon>0</icon>
  590.         <textAlign>left</textAlign>
  591.         <font>Geneva</font>
  592.         <textSize>10</textSize>
  593.         <textStyle>plain</textStyle>
  594.         <textHeight>13</textHeight>
  595.         <name></name>
  596.         <script></script>
  597.     </part>
  598.     <part>
  599.         <id>2</id>
  600.         <type>field</type>
  601.         <visible> <true /> </visible>
  602.         <dontWrap> <false /> </dontWrap>
  603.         <dontSearch> <false /> </dontSearch>
  604.         <sharedText> <false /> </sharedText>
  605.         <fixedLineHeight> <false /> </fixedLineHeight>
  606.         <autoTab> <false /> </autoTab>
  607.         <lockText> <true /> </lockText>
  608.         <rect>
  609.             <left>0</left>
  610.             <top>4</top>
  611.             <right>384</right>
  612.             <bottom>32</bottom>
  613.         </rect>
  614.         <style>transparent</style>
  615.         <autoSelect> <false /> </autoSelect>
  616.         <showLines> <false /> </showLines>
  617.         <wideMargins> <false /> </wideMargins>
  618.         <multipleLines> <false /> </multipleLines>
  619.         <reservedFamily> 0 </reservedFamily>
  620.         <titleWidth>0</titleWidth>
  621.         <icon>0</icon>
  622.         <textAlign>center</textAlign>
  623.         <font>Geneva</font>
  624.         <textSize>12</textSize>
  625.         <textStyle>plain</textStyle>
  626.         <textHeight>16</textHeight>
  627.         <name></name>
  628.         <script></script>
  629.     </part>
  630.     <part>
  631.         <id>3</id>
  632.         <type>field</type>
  633.         <visible> <true /> </visible>
  634.         <dontWrap> <false /> </dontWrap>
  635.         <dontSearch> <false /> </dontSearch>
  636.         <sharedText> <false /> </sharedText>
  637.         <fixedLineHeight> <false /> </fixedLineHeight>
  638.         <autoTab> <false /> </autoTab>
  639.         <lockText> <true /> </lockText>
  640.         <rect>
  641.             <left>5</left>
  642.             <top>34</top>
  643.             <right>379</right>
  644.             <bottom>142</bottom>
  645.         </rect>
  646.         <style>transparent</style>
  647.         <autoSelect> <false /> </autoSelect>
  648.         <showLines> <false /> </showLines>
  649.         <wideMargins> <false /> </wideMargins>
  650.         <multipleLines> <false /> </multipleLines>
  651.         <reservedFamily> 0 </reservedFamily>
  652.         <titleWidth>0</titleWidth>
  653.         <icon>0</icon>
  654.         <textAlign>left</textAlign>
  655.         <font>Geneva</font>
  656.         <textSize>12</textSize>
  657.         <textStyle>plain</textStyle>
  658.         <textHeight>16</textHeight>
  659.         <name></name>
  660.         <script></script>
  661.     </part>
  662.     <part>
  663.         <id>6</id>
  664.         <type>button</type>
  665.         <visible> <true /> </visible>
  666.         <reserved5> 0 </reserved5>
  667.         <reserved4> 0 </reserved4>
  668.         <reserved3> 0 </reserved3>
  669.         <reserved2> 0 </reserved2>
  670.         <reserved1> 0 </reserved1>
  671.         <enabled> <true /> </enabled>
  672.         <rect>
  673.             <left>207</left>
  674.             <top>143</top>
  675.             <right>322</right>
  676.             <bottom>165</bottom>
  677.         </rect>
  678.         <style>roundrect</style>
  679.         <showName> <true /> </showName>
  680.         <highlight> <false /> </highlight>
  681.         <autoHighlight> <true /> </autoHighlight>
  682.         <sharedHighlight> <true /> </sharedHighlight>
  683.         <family>0</family>
  684.         <titleWidth>0</titleWidth>
  685.         <icon>0</icon>
  686.         <textAlign>center</textAlign>
  687.         <font>Chicago</font>
  688.         <textSize>12</textSize>
  689.         <textStyle>plain</textStyle>
  690.         <name>Documentation</name>
  691.         <script>on mouseUpgo card 3end mouseUp</script>
  692.     </part>
  693.     <part>
  694.         <id>7</id>
  695.         <type>button</type>
  696.         <visible> <true /> </visible>
  697.         <reserved5> 0 </reserved5>
  698.         <reserved4> 0 </reserved4>
  699.         <reserved3> 0 </reserved3>
  700.         <reserved2> 0 </reserved2>
  701.         <reserved1> 0 </reserved1>
  702.         <enabled> <true /> </enabled>
  703.         <rect>
  704.             <left>64</left>
  705.             <top>143</top>
  706.             <right>179</right>
  707.             <bottom>165</bottom>
  708.         </rect>
  709.         <style>roundrect</style>
  710.         <showName> <true /> </showName>
  711.         <highlight> <false /> </highlight>
  712.         <autoHighlight> <true /> </autoHighlight>
  713.         <sharedHighlight> <true /> </sharedHighlight>
  714.         <family>0</family>
  715.         <titleWidth>0</titleWidth>
  716.         <icon>0</icon>
  717.         <textAlign>center</textAlign>
  718.         <font>Chicago</font>
  719.         <textSize>12</textSize>
  720.         <textStyle>plain</textStyle>
  721.         <name>Demo</name>
  722.         <script>on mouseUpgo card 2end mouseUp</script>
  723.     </part>
  724.     <content>
  725.         <layer>card</layer>
  726.         <id>1</id>
  727.         <text><span class="style10">he XFCNs in this stack are copyright 1991 by Differential Development. They are shareware; please send $12 per copy you use to:    Differential Development    P.O. Box 1044    Harvard Square Station    Cambridge, MA 02238In return, we will send you updates and forthcoming shareware.</span></text>
  728.     </content>
  729.     <content>
  730.         <layer>card</layer>
  731.         <id>2</id>
  732.         <text><span class="style11">ompression for HyperCard</span></text>
  733.     </content>
  734.     <content>
  735.         <layer>card</layer>
  736.         <id>3</id>
  737.         <text>This stack contains XCMDs to compress and uncompress files, including both the data and resource forks. It also contains XCMDs to compress and uncompress strings, so that you can keep compressed text in HyperCard fields and variables.</text>
  738.     </content>
  739.     <name></name>
  740.     <script></script>
  741. </card>
  742.  
  743.  
  744.